package com.shop.utils;

import org.apache.shiro.crypto.hash.Md5Hash;
import org.apache.shiro.crypto.hash.SimpleHash;

public class ShiroPasswordUtils {


    public  static String password(String password,String salt){
        Integer hashIterations = 1;//散列次数
        SimpleHash hash = new SimpleHash("md5", password, salt,hashIterations);
        System.out.println(hash);
        return hash.toString();
    }
}
